package jarvis.utils;

import java.util.HashMap;

public class FileData {

	private HashMap _metadata = null;
	private String _textContent = null;
	private String _rawtext = null;
	private boolean isValidDocument = true;
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setMetadata(HashMap data) {
		_metadata = data;
	}

	public Object getMetadata() {
		return _metadata;
	}

	public void setTextContent(String textData) {
		_textContent = textData;
	}

	public String getTextContent() {
		return _textContent;
	}

	public String getRawtext() {
		return _rawtext;
	}

	public void setRawtext(String _rawtext) {
		this._rawtext = _rawtext;
	}

	public boolean isValidDocument() {
		return isValidDocument;
	}

	public void setValidDocument(boolean isValidDocument) {
		this.isValidDocument = isValidDocument;
	}

	public String toString() {
		return "****Metadata: " + getMetadata() + "\n" + "****Text Content: "
				+ getTextContent() + "\n" + "****Raw Text: " + getRawtext()
				+ "\n" + "****Valid Document: " + isValidDocument;

	}

}
